]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: Replace Shell.Stack with layout manager
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 7 May 2013 20:11:42 +0000 (22:11 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 7 May 2013 22:07:03 +0000 (00:07 +0200)
Commit e98eb57e3e8b added flags to expand the dialog's background
stack, which works fine with the current clutter-1.16 branch, but
breaks on clutter-1.14 (as shipped with GNOME 3.8).
Using an St.Widget with a Clutter.BinLayout fixes this, and is more
modern Clutter usage.

https://bugzilla.gnome.org/show_bug.cgi?id=699877

js/ui/modalDialog.js

index 84c5c3b93bb697d603b4a0d7a397d43bd916dced..c85f9a3935aecbe9ae1a79a8995861de398d5ed5 100644 (file)
@@ -65,7 +65,7 @@ const ModalDialog = new Lang.Class({
         this._group.connect('key-press-event', Lang.bind(this, this._onKeyPressEvent));
         this._group.connect('key-release-event', Lang.bind(this, this._onKeyReleaseEvent));
 
-        this.backgroundStack = new Shell.Stack();
+        this.backgroundStack = new St.Widget({ layout_manager: new Clutter.BinLayout() });
         this._backgroundBin = new St.Bin({ child: this.backgroundStack,
                                            x_fill: true, y_fill: true });
         this._monitorConstraint = new Layout.MonitorConstraint();